package com.example.proxy.staticproxy;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description
 * @Date 2021/8/6
 * @Created by Jonathan
 */
@Slf4j
public class UserServiceProxy implements UserService {
    UserService userService = new UserServiceImpl();

    @Override
    public void login(String userName, String password) {
        // 静态代理 就是拿到原来的类 做一些增强
        log.info("before login");
        userService.login(userName, password);
        log.info("after login");
    }
}
